package com.ck.model.common.dto;

import com.ck.annotation.Children;
import com.ck.annotation.Id;
import com.ck.annotation.ParentId;

import java.util.List;

/**
 * 菜单模块DTO
 *
 * @author dxy
 * @date 2018/7/11 15:02
 */
public class MenuModuleDTO {
	/**
	 * 模块主键
	 */
	@Id
	private Long moduleId;
	/**
	 * 上级模块
	 */
	@ParentId
	private Long pid;
	/**
	 * 模块名
	 */
	private String label;
	/**
	 * 链接
	 */
	private String url;
	/**
	 * icon
	 */
	private String icon;
	/**
	 * 是否选中
	 */
	private Boolean checked = false;
	/**
	 * 所有子
	 */
	@Children
	private List<MenuModuleDTO> children;

	public Long getModuleId() {
		return moduleId;
	}

	public void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<MenuModuleDTO> getChildren() {
		return children;
	}

	public void setChildren(List<MenuModuleDTO> children) {
		this.children = children;
	}
}
